[PATCH] QSystemLocale: bail out if accessed post-destruction
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 24 Jan 2025 18:28:30 +0000 (10:28 -0800)
committerPatrick Franz <deltaone@debian.org>
Tue, 2 Sep 2025 19:04:45 +0000 (21:04 +0200)
commitff56e837f1ff3012d196cf6797db2f8dd2c06eee
treef7c4adea63fd8575bb3e8843b8be83cc5ab2c8de
parenta050d2f528229709c8d90131f8caf0400a9d81b6
[PATCH] QSystemLocale: bail out if accessed post-destruction

There's little we can do, but a lot of content ends up in QLocale very
late in the execution. Let's at least not crash.

Task-number: QTBUG-133206
Change-Id: I77d41141cb115147f9befffdd5e69dac19c96044
Reviewed-by: Albert Astals Cid <aacid@kde.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit e32f28034ad2383393645777bcd96eab3f696076)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit d5c5f9f3529b384d0d4bea2d51f0ad6a3d57481d)

Gbp-Pq: Name upstream_qsystemlocale_post_destruction_access.patch
src/corelib/text/qlocale_unix.cpp
src/corelib/text/qlocale_win.cpp